package com.bdqn.Service.Enquire;

import com.bdqn.entity.Enquire;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EnquireService {
    /**
     * 添加Enquire
     */
    public boolean Insert(Enquire enquire);
    /**
     * 编号对照表添加
     */
    public boolean UpdateIdMapping(@Param("id") int id, @Param("enq") Enquire enquire);
    /**
     * 查询Enquire
     */
    public Enquire Select(@Param("enq") Enquire enquire);
    /**
     * 分页并按条件查询
     * @param enquire
     * @param pageNum
     * @param pageSize
     * @return
     */
    public List<Enquire> findAll(Enquire enquire, Integer pageNum, Integer pageSize);
    /**
     * 查询总条数
     * @return
     */
    int getCount();
    /**
     * 根据序号删除一条询价记录
     * @param id
     * @return
     */
    int deleteEnquire(Integer id);

    /**
     * 修改Enquire
     */
    public boolean updateEnquire(Enquire enquire);

    public List<Enquire> findMateSupByEnq(Integer id);

    Enquire findByNum(@Param("enq") Enquire enquire);

    boolean UpdateStatus1(Enquire enquire);
}
